<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" 	uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" 	uri="http://java.sun.com/jsp/jstl/functions"  %>
<!DOCTYPE html>
<html lang="en">
<%@include file="head.jsp" %>
<body>
<div class="container">
	<div class="row">
		<div class="col-md-4">
			<form action="/webtest/books/add" method="post" role="form">
				<div class="form-group">
					<label for="title">Title</label>
					<input id="title" class="form-control" type="text" name="title" />
				</div>
				<div class="form-group">
					<label for="isbn">ISBN</label>
					<input id="isbn" class="form-control" type="text" name="isbn" />
				</div>
				<button type="submit" class="btn btn-default">Add</button>
			</form>		
		</div>	
		<div class="col-md-4">
			<form action="books/list" role="form">
				<div class="form-group">
					<label for="title1">Title</label>
					<input id="title1" class="form-control" type="text" name="title" />
				</div>
				<button type="submit" class="btn btn-default">Search</button>			
			</form>			
		</div>	
	</div>

	<div class="row" >
		<div class="col-md-6">
			<table class="table">
				<c:forEach items="${books}" var="book">
				<tr><td>${book.name}</td></tr>
				</c:forEach>
			</table>
		</div>
	</div>
</div>
</body>
</html>